/* 分装轮播图业务代码 */
/* 获取轮播图 */
import { getBannerAPI } from '@/apis/home';
import { onMounted, ref } from 'vue';

export function useBanner() {
    const bannerlist = ref([])
    const getBanner = async () => {
        const { data: res } = await getBannerAPI({ distributionSite: 2 })
        bannerlist.value = res.result
    }
    onMounted(() => getBanner())
    return{
        bannerlist
    }
}